Other Enums
The following enums are available globally.
-
Controls the translation reference point.
Values of this type are used in the
See morecircleTranslateAnchor
property ofMGLCircleStyleLayer
.Declaration
Objective-C
enum MGLCircleTranslateAnchor : NSUInteger {}
Swift
enum MGLCircleTranslateAnchor : UInt
-
Controls the scaling behavior of the circle when the map is pitched.
Values of this type are used in the
See morecirclePitchScale
property ofMGLCircleStyleLayer
.Declaration
Objective-C
enum MGLCirclePitchScale : NSUInteger {}
Swift
enum MGLCirclePitchScale : UInt
-
Controls the translation reference point.
Values of this type are used in the
See morefillTranslateAnchor
property ofMGLFillStyleLayer
.Declaration
Objective-C
enum MGLFillTranslateAnchor : NSUInteger {}
Swift
enum MGLFillTranslateAnchor : UInt
-
The display of line endings.
Values of this type are used in the
See morelineCap
property ofMGLLineStyleLayer
.Declaration
Objective-C
enum MGLLineCap : NSUInteger {}
Swift
enum MGLLineCap : UInt
-
The display of lines when joining.
Values of this type are used in the
See morelineJoin
property ofMGLLineStyleLayer
.Declaration
Objective-C
enum MGLLineJoin : NSUInteger {}
Swift
enum MGLLineJoin : UInt
-
Controls the translation reference point.
Values of this type are used in the
See morelineTranslateAnchor
property ofMGLLineStyleLayer
.Declaration
Objective-C
enum MGLLineTranslateAnchor : NSUInteger {}
Swift
enum MGLLineTranslateAnchor : UInt
-
Label placement relative to its geometry.
Values of this type are used in the
See moresymbolPlacement
property ofMGLSymbolStyleLayer
.Declaration
Objective-C
enum MGLSymbolPlacement : NSUInteger {}
Swift
enum MGLSymbolPlacement : UInt
-
In combination with
symbolPlacement
, determines the rotation behavior of icons.Values of this type are used in the
See moreiconRotationAlignment
property ofMGLSymbolStyleLayer
.Declaration
Objective-C
enum MGLIconRotationAlignment : NSUInteger {}
Swift
enum MGLIconRotationAlignment : UInt
-
Scales the icon to fit around the associated text.
Values of this type are used in the
See moreiconTextFit
property ofMGLSymbolStyleLayer
.Declaration
Objective-C
enum MGLIconTextFit : NSUInteger {}
Swift
enum MGLIconTextFit : UInt
-
Orientation of text when map is pitched.
Values of this type are used in the
See moretextPitchAlignment
property ofMGLSymbolStyleLayer
.Declaration
Objective-C
enum MGLTextPitchAlignment : NSUInteger {}
Swift
enum MGLTextPitchAlignment : UInt
-
In combination with
symbolPlacement
, determines the rotation behavior of the individual glyphs forming the text.Values of this type are used in the
See moretextRotationAlignment
property ofMGLSymbolStyleLayer
.Declaration
Objective-C
enum MGLTextRotationAlignment : NSUInteger {}
Swift
enum MGLTextRotationAlignment : UInt
-
Text justification options.
Values of this type are used in the
See moretextJustify
property ofMGLSymbolStyleLayer
.Declaration
Objective-C
enum MGLTextJustify : NSUInteger {}
Swift
enum MGLTextJustify : UInt
-
Part of the text placed closest to the anchor.
Values of this type are used in the
See moretextAnchor
property ofMGLSymbolStyleLayer
.Declaration
Objective-C
enum MGLTextAnchor : NSUInteger {}
Swift
enum MGLTextAnchor : UInt
-
Specifies how to capitalize text, similar to the CSS
text-transform
property.Values of this type are used in the
See moretextTransform
property ofMGLSymbolStyleLayer
.Declaration
Objective-C
enum MGLTextTransform : NSUInteger {}
Swift
enum MGLTextTransform : UInt
-
Controls the translation reference point.
Values of this type are used in the
See moreiconTranslateAnchor
property ofMGLSymbolStyleLayer
.Declaration
Objective-C
enum MGLIconTranslateAnchor : NSUInteger {}
Swift
enum MGLIconTranslateAnchor : UInt
-
Controls the translation reference point.
Values of this type are used in the
See moretextTranslateAnchor
property ofMGLSymbolStyleLayer
.Declaration
Objective-C
enum MGLTextTranslateAnchor : NSUInteger {}
Swift
enum MGLTextTranslateAnchor : UInt
-
These constants represent the scheme that the tile URL templates will use.
Declaration
Objective-C
enum MGLTileSetScheme : NSUInteger {}
Swift
enum MGLTileSetScheme : UInt
-
Error constants for the Mapbox SDK.
See moreDeclaration
Objective-C
enum MGLErrorCode : NSInteger {}
Swift
enum MGLErrorCode : Int
-
Options for enabling debugging features in an
See moreMGLMapView
instance.Declaration
Objective-C
enum MGLMapDebugMaskOptions : NSUInteger {}
Swift
struct MGLMapDebugMaskOptions : OptionSetType
-
These constants indicate the current drag state of an annotation view.
See moreDeclaration
Objective-C
enum MGLAnnotationViewDragState : NSUInteger {}
-
The vertical alignment of an annotation within a map view. Used with
See moreMGLMapView.userLocationVerticalAlignment
.Declaration
Objective-C
enum MGLAnnotationVerticalAlignment : NSUInteger {}
Swift
enum MGLAnnotationVerticalAlignment : UInt